import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    setDataList:[],
    setFlage(state,payload){
      state.flage = payload
    },
    updateDataList(state,payload){
      state.tableList = payload
    }
  },
  getters: {
    showNum(state){
      return !state.flage
    }
  },
  mutations: {
  },
  actions: {
    setList(context,payload){
      context.commit('asyncSetLsit',payload)
    },
    setDataList(context,payload){
      context.commit('setDataList',payload)
    }
  },
  modules: {
  }
})
